package com.ffyc.backserver;

import com.ffyc.backserver.model.Menu;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer;
import org.springframework.data.redis.serializer.StringRedisSerializer;

import java.util.concurrent.TimeUnit;

/*
springboot的启动类

springBoot自动配置 spring应用启动时就可以加载各种组件
核心:注解标签

@SpingBootApplication核心注解  又是一个组合注解标签
@EnableAutoConfiguration  自动加载配置项的核心注解
@Import({AutoConfigurationImportSelector.class})可以根据pom.xml的配置来加载对应的组件
@ComponentScan sping注解扫描 扫描同级包下面的类
 */
@SpringBootApplication
@MapperScan("com.ffyc.backserver.dao")
public class  BackServerApplication {

	public static void main(String[] args) {
		SpringApplication.run(BackServerApplication.class, args);


	}


}
